Fix GNU/non-Linux failure to build because of ipc/chromium/src/base/dir_reader_posix.h
authorMike Hommey <mh@glandium.org>
Fri, 18 Nov 2011 10:28:30 +0000 (11:28 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Mon, 24 Dec 2018 16:04:10 +0000 (16:04 +0000)
Gbp-Pq: Topic porting-kfreebsd-hurd
Gbp-Pq: Name Fix-GNU-non-Linux-failure-to-build-because-of-ipc-ch.patch

ipc/chromium/src/base/dir_reader_posix.h

index 4be04bd53126cae02f8c850132299a97980e0365..a9cb2af6ba988edcbea07d54e2a6c3d4fa8301d0 100644 (file)
@@ -20,7 +20,7 @@
 // seems worse than falling back to enumerating all file descriptors so we will
 // probably never implement this on the Mac.
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && defined(__linux__)
 #include "base/dir_reader_linux.h"
 #elif defined(OS_BSD) && !defined(__GLIBC__)
 #include "base/dir_reader_bsd.h"
@@ -30,7 +30,7 @@
 
 namespace base {
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && defined(__linux__)
 typedef DirReaderLinux DirReaderPosix;
 #elif defined(OS_BSD) && !defined(__GLIBC__)
 typedef DirReaderBSD DirReaderPosix;